package com.huike.web.controller.business;

import com.huike.business.domain.BusinessRecordVo;
import com.huike.business.service.ITbBusinessService;
import com.huike.common.core.domain.AjaxResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/business/record")
public class TbBusinessRecordController {

    @Autowired
    private ITbBusinessService tbBusinessService;

    /**
     * 新增商机跟进记录
     * @param businessRecordVo
     * @return
     */
    @PostMapping
    public AjaxResult addBusinessRecord(@RequestBody BusinessRecordVo businessRecordVo){
        System.out.println("businessRecordVo = " + businessRecordVo);
        tbBusinessService.addBusinessRecord(businessRecordVo);
        return AjaxResult.success();
    }

}
